package com.mikufufu.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 博客启动类
 *     {@code @SpringBootApplication} 等同于下面3个注解
 *     {@code @SpringBootConfiguration} 声明当前类是SpringBoot应用的配置类的注解
 *     {@code @EnableAutoConfiguration} 开启自动配置的注解
 *     {@code @ComponentScan} 配置主键扫描的注解
 * 
 */
@EnableScheduling
@SpringBootApplication
@MapperScan("com.mikufufu.blog.mapper")
public class BlogApplication {
    public static void main(String[] args) {
        SpringApplication.run(BlogApplication.class, args);
    }
}
